package io;

import java.io.File;

public class IODemo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("./test.txt");
//        boolean ret = file.delete();//删除文件
        file.deleteOnExit();//退出时再删除
        Thread.sleep(5000);
//        System.out.println(ret);
    }
}
